package com.manage.project.biz.service.impl;

import java.util.List;
import com.manage.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizQitasheshishebeiMapper;
import com.manage.project.biz.domain.BizQitasheshishebei;
import com.manage.project.biz.service.IBizQitasheshishebeiService;

/**
 * 设备管理Service业务层处理
 *
 * @author ruoyi
 * @date 2022-05-30
 */
@Service
public class BizQitasheshishebeiServiceImpl implements IBizQitasheshishebeiService
{
    @Autowired
    private BizQitasheshishebeiMapper bizQitasheshishebeiMapper;

    /**
     * 查询设备管理
     *
     * @param id 设备管理主键
     * @return 设备管理
     */
    @Override
    public BizQitasheshishebei selectBizQitasheshishebeiById(Long id)
    {
        return bizQitasheshishebeiMapper.selectBizQitasheshishebeiById(id);
    }

    /**
     * 查询设备管理列表
     *
     * @param bizQitasheshishebei 设备管理
     * @return 设备管理
     */
    @Override
    public List<BizQitasheshishebei> selectBizQitasheshishebeiList(BizQitasheshishebei bizQitasheshishebei)
    {
        return bizQitasheshishebeiMapper.selectBizQitasheshishebeiList(bizQitasheshishebei);
    }

    /**
     * 新增设备管理
     *
     * @param bizQitasheshishebei 设备管理
     * @return 结果
     */
    @Override
    public int insertBizQitasheshishebei(BizQitasheshishebei bizQitasheshishebei)
    {
        bizQitasheshishebei.setCreateTime(DateUtils.getNowDate());
        return bizQitasheshishebeiMapper.insertBizQitasheshishebei(bizQitasheshishebei);
    }

    /**
     * 修改设备管理
     *
     * @param bizQitasheshishebei 设备管理
     * @return 结果
     */
    @Override
    public int updateBizQitasheshishebei(BizQitasheshishebei bizQitasheshishebei)
    {
        bizQitasheshishebei.setUpdateTime(DateUtils.getNowDate());
        return bizQitasheshishebeiMapper.updateBizQitasheshishebei(bizQitasheshishebei);
    }

    /**
     * 批量删除设备管理
     *
     * @param ids 需要删除的设备管理主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshishebeiByIds(Long[] ids)
    {
        return bizQitasheshishebeiMapper.deleteBizQitasheshishebeiByIds(ids);
    }

    /**
     * 删除设备管理信息
     *
     * @param id 设备管理主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshishebeiById(Long id)
    {
        return bizQitasheshishebeiMapper.deleteBizQitasheshishebeiById(id);
    }
}
